#ifndef GRAPHICS_H
#define GRAPHICS_H

#ifdef __APPLE__
	#include "OpenGL/gl.h"
	#include "OpenGL/glu.h"
	#include <GLUT/glut.h>
#else
#ifdef WIN32
	#include <windows.h>
#endif
	#include <GL/gl.h>
	#include <GL/glu.h>
	#include <GL/glut.h>
#endif

#include <math.h>
#include <stdlib.h>
#include <set>

#include "../chipmunk/chipmunk.h"

#include "game.h"



#define SLEEP_TICKS 16


//Does all the displaying for the game
class Graphics {
private:
    static Game* game_; //Pointer to the universe that this graphics is displaying
    static void timercall(int value); //Stalls each frame of the game a set amount
    static void frame(); //The entire draw step
    static void initGL(); //Init opengl things
	static void reset();

public:
    static void init(Game* u, int width, int height, int argc, const char *argv[]); //Init graphics object
};

#endif
